<template>
  <div class="app-container">
    <div class="ProductionDynamic">
      <!-- 头部 -->
      <div class="ProductionDynamicHeader">
        <Find :OriginalFilter="{ static: true }" :formList="formList" @findClicked="findData" />
      </div>
      <!-- 主体 -->
      <div class="ProductionDynamicMain">
        <el-card class="ProductionDynamicMainCard" shadow="always" :body-style="{ padding: '0' }">
          <div class="ProductionDynamicMainCardHeader">
            <h1 class="ProductionDynamicMainCardHeaderH1">订单生成动态</h1>
          </div>

          <div class="ProductionDynamicMainCardMain">
            <!-- 头 -->
            <div class="ProductionDynamicMainCardMainTop">
              <div class="ProductionDynamicMainCardMainTopRight">
                <div class="timeline">
                  <div class="timeline-dot timeline-dotTwo"></div>
                  <h1 class="MainH ProductionDynamicMainCardHeaderH1">纸板</h1>
                  <div class="timeline-dot"></div>

                  <div class="timeline-dot timeline-dotThree"></div>
                  <h1 class="MainH ProductionDynamicMainCardHeaderH1">材料</h1>
                  <div class="timeline-dot timelineRight"></div>

                  <div class="timeline-dot timeline-dotFore"></div>
                  <h1 class="MainH1 ProductionDynamicMainCardHeaderH1">裁剪配套</h1>
                  <div class="timeline-dot timeline-dotFor"></div>

                  <div class="timeline-dot timeline-dotFive"></div>
                  <h1 class="MainH1 ProductionDynamicMainCardHeaderH1">工艺加工</h1>
                  <div style="width: 27px !important" class="timeline-dot"></div>
                </div>
              </div>
            </div>

            <!-- 表格体 -->
            <div class="ProductionDynamicMainCardMainBottom">
              <div class="ProductionDynamicMainCardMainBottomLeft">
                <Table :tableData="tableData" :tableHeader="tableHeader" :selection="false" :TableHeight="522" />
              </div>
              <div class="ProductionDynamicMainCardMainBottomRight">
                <Table :tableData="tableData1" :tableHeader="tableHeader1" :selection="false" :TableHeight="522" />
              </div>
            </div>
          </div>

          <div class="ProductionDynamicMainCardBottom">
            <div>
              <el-button type="primary" size="default" @click="">标注指令已结束</el-button>
              <el-button type="primary" size="default" @click="">查询标注结束指令</el-button>
            </div>
            <div style="margin-top: 30px">
              <el-button class="save" type="primary" size="default" @click="">保存</el-button>
              <el-button type="primary" size="default" @click="">打印</el-button>
            </div>
          </div>
          <!-- card body -->
        </el-card>
      </div>
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue'
import JMessage from '@/utils/JMessage'
export default defineComponent({
  name: 'ProductionPerformanceO'
})
</script>
<script lang="ts" setup>
import { i18n, Jzhcn } from '@/i18n'
import Find from '@/components/Find/index.vue'
const formList = ref([
  {
    type: 'input',
    inputPlaceholder: '请输入指令',
    inputValue: ''
  },
  {
    type: 'select',
    selectValue: '品牌',
    selectLabel: '',
    selectOptions: [
      {
        optionKey: '1',
        optionValue: '111111',
        optionLabel: 'option1'
      },
      {
        optionKey: '2',
        optionValue: '222222',
        optionLabel: 'option2'
      },
      {
        optionKey: '3',
        optionValue: '333333',
        optionLabel: 'option3'
      }
    ]
  },
  {
    type: 'select',
    selectValue: '季节',
    selectLabel: '',
    selectOptions: [
      {
        optionKey: '1',
        optionValue: '111111',
        optionLabel: 'option1'
      },
      {
        optionKey: '2',
        optionValue: '222222',
        optionLabel: 'option2'
      },
      {
        optionKey: '3',
        optionValue: '333333',
        optionLabel: 'option3'
      }
    ]
  },
  {
    type: 'select',
    selectValue: '楦头',
    selectLabel: '',
    selectOptions: [
      {
        optionKey: '1',
        optionValue: '111111',
        optionLabel: 'option1'
      },
      {
        optionKey: '2',
        optionValue: '222222',
        optionLabel: 'option2'
      },
      {
        optionKey: '3',
        optionValue: '333333',
        optionLabel: 'option3'
      }
    ]
  },
  {
    type: 'select',
    selectValue: '大底',
    selectLabel: '',
    selectOptions: [
      {
        optionKey: '1',
        optionValue: '111111',
        optionLabel: 'option1'
      },
      {
        optionKey: '2',
        optionValue: '222222',
        optionLabel: 'option2'
      },
      {
        optionKey: '3',
        optionValue: '333333',
        optionLabel: 'option3'
      }
    ]
  },
  {
    type: 'date',
    dateLabel: '客户交期',
    dateValue: ''
  },

  {
    type: 'date',
    dateLabel: '成型计划日期',
    dateValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入工厂货号',
    inputValue: ''
  },
  {
    type: 'input',
    inputLabel: '核算日期',
    inputDisabled: true,
    inputValue: '624'
  },
  {
    type: 'button',
    checkboxLabel: '置空',
    bgColor: '#1890FF'
  },
  {
    type: 'button',
    checkboxLabel: '清空'
  },
  {
    type: 'button',
    checkboxLabel: '导出'
  }
])
const findData = (data: any) => {
  console.log(data)
}
// 表格数据
const tableData = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader = ref([
  {
    label: '订单号',
    prop: 'customer',
    width: '76px'
  },
  {
    label: '品牌',
    prop: 'instruction',
    width: '76px'
  },
  {
    label: '工厂货号',
    prop: 'shape',
    width: '76px'
  },
  {
    label: '颜色',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '季节',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '楦头',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '大底',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '号码',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '数量',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '下单日期',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '客户交期',
    prop: 'shape',
    width: '68px'
  }
])

// 表格数据
const tableData1 = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader1 = ref([
  {
    label: '版师',
    prop: 'customer',
    width: '68px'
  },
  {
    label: '备料员',
    prop: 'instruction',
    width: '68px'
  },
  {
    label: '开发员',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '计划',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '实际',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '计划',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '实际',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '欠数',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '计划',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '实际',
    prop: 'shape',
    width: '68px'
  },
  {
    label: '欠数',
    prop: 'shape',
    width: '65px'
  },
  {
    label: '计划',
    prop: 'shape',
    width: '65px'
  }
])
</script>

<style lang="less" scoped>
// 主体样式
.ProductionDynamicMain {
  width: 100%;
  height: 670px;
  margin-top: 20px;

  .ProductionDynamicMainCard {
    width: 100%;
    height: 100%;
    box-shadow: none;
  }
}

// 主体
.ProductionDynamicMainCardHeader {
  width: 98%;
  margin: auto;
  margin-top: 10px;
}

.ProductionDynamicMainCardMain {
  width: 98%;
  margin-top: 10px;
  margin: auto;
}

.ProductionDynamicMainCardBottom {
  width: 98%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  margin: auto;
  margin-top: 13px;
}

// H1字体
.ProductionDynamicMainCardHeaderH1 {
  font-size: 16px;
}

.ProductionDynamicMainCardHeaderDiv {
  width: 100%;
  height: 50px;
  display: flex;
  margin-top: 5px;
}

// Input 输入框的样式
.MainRightMainPoInput {
  width: 88px;
  height: 25px;
}

// 生产动态查询 样式
.ProductionDynamicMainCardMainTop {
  width: 50%;
  margin-left: 60%;
  height: 40px;
  display: flex;
  justify-content: space-between;

  .ProductionDynamicMainCardMainTopRight {
    width: 80%;
    height: 100%;
  }
}

.ProductionDynamicMainCardMainBottom {
  width: 100%;
  height: 92%;
  display: flex;

  .ProductionDynamicMainCardMainBottomLeft {
    width: 50%;
    height: 100%;
  }

  .ProductionDynamicMainCardMainBottomRight {
    width: 50%;
    height: 100%;
  }
}

// 时间线
.timeline {
  display: flex;
  margin-top: 15px;

  .timeline-dot {
    width: 70px;
    height: 1px;
    background: #e7e7e7;
    border-radius: 0px 0px 0px 0px;
    opacity: 1;
    margin-top: 10px;
  }
}

.timeline-dotTwo {
  width: 78px !important;
  margin-left: 42px;
}

.timeline-dotThree {
  width: 80px !important;
  margin-left: 2px;
}

.timelineRight {
  width: 70px !important;
}

.timeline-dotFore {
  width: 100px !important;
  margin-left: 7px;
}

.timeline-dotFive {
  width: 66px !important;
  margin-left: 5px;
}

:deep(.ProductionDynamicMainCardBottom .el-input__wrapper) {
  background-color: #fff5eb;
}

.save {
  color: black;
  border: 1px solid #e7e7e7;
  background: #e7e7e7;
}

.MainH1 {
  width: 115px;
}

.MainH {
  width: 60px;
}

.timeline-dotFor {
  width: 90px !important;
}
</style>
